<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/wondershare/js/jquery.js"></script> 
<script type="text/javascript">
function add(){
	document.location.href="?action=add"	
}
function edit( aid ){
	document.location.href="?action=edit&aid="+aid;	
}
function del( aid ){
	var ret = window.confirm('您确定要删除该作者！');
	if( ret ) document.location.href="?action=del&aid="+aid;	
}
</script>
</head>

<body style="padding:5px;">
<a href="javascript:add();">新增作者</a> 
<table cellpadding="2" cellspacing="1" width="100%" class="list-div">
    <tr><th width="50">作者ID</th>
    <th>作者</th>
    <th>twitter账号</th>
    <th>头像地址</th>
    <th>google+账号</th>
    <th>操作</th>
    </tr>
    <{foreach from=$data item=v}>
    <tr><td align="center"><{$v.aid}></td><td align="center"><{$v.author}></td><td align="center"><{$v.email}></td><td align="center"><{$v.avatar}></td><td align="center"><{$v.gaccount}></td>
    <td align="center"><a href="javascript:edit(<{$v.aid}>);">编辑</a> <a href="javascript:del(<{$v.aid}>);">删除</a></td></tr>
    <{/foreach}>
</table>
</body>
</html>
